part of 'index_bloc.dart';

class IndexState extends Equatable {
  final int selectedIndex;
  final List<String> tabs;
  const IndexState({
    this.tabs = const ['推荐', '免费课程', '实战课程', '就业课'],
    this.selectedIndex = 0,
  });

  IndexState copyWith({
    List<String> tabs,
    int selectedIndex,
  }) {
    return IndexState(
      selectedIndex : selectedIndex ?? this.selectedIndex,
      tabs : tabs ?? this.tabs,
    );
  }
  
  @override
  List<Object> get props => [selectedIndex, tabs];
}
